-- This file is part of the Fantasy Grounds Open Foundation Ruleset project. 
-- For the latest information, see http://www.fantasygrounds.com/
--
-- Copyright 2008 SmiteWorks Ltd.
--
-- This file is provided under the Open Game License version 1.0a
-- Refer to the license.html file for the full license text
--
-- All producers of work derived from this material are advised to
-- familiarize themselves with the license, and to take special
-- care in providing the definition of Product Identity (as specified
-- by the OGL) in their products.
--
-- All material submitted to the Open Foundation Ruleset project must
-- contain this notice in a manner applicable to the source file type.


function onInit()
	-- Module export categories
	ExportManager.registerCategory("encounter", "encounter", "Story");
	ExportManager.registerCategory("image", "imagewindow", "Images & Maps");
	ExportManager.registerCategory("npc", "npc", "Personalities");
	ExportManager.registerCategory("item", "item", "Items");

	-- Combat manager
	CombatManager.registerDropClass("npc", "name", "token");
	CombatManager.registerTrackerClass("combattracker_entry_npc", "npc");
	CombatManager.registerDropClass("charsheet", "name", nil);
	CombatManager.registerTrackerClass("combattracker_entry_pc", "charsheet");
	
	CombatManager.setDefaultTrackerType("combattracker_entry_npc");
	
	CombatManager.registerTrackerSortCallback(function(w1, w2) return w1.initresult.getValue() < w2.initresult.getValue() end);
end
